import { createRouter, createWebHistory } from "vue-router";
import HomeView from "@view/HomeView/index.vue";

const routes = [
  { path: "/", name: "HomeView", component: HomeView },
  { path: "/text", name: "text", component: () => import("@view/otherView/text.vue"), },
  {
    path: "/:pathMatch(.*)*",
    name: "NotFound",
    component: () => import("@view/otherView/not-found.vue"),
  },
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;
